package com.docshare.upload;

import org.red5.io.amf3.ByteArray;

public class BlockInfo {
    public long startPos = 0;
    public long endPos = 0;

    public void writeData(ByteArray barr) {
        Util.writeLong(barr, this.startPos);
        Util.writeLong(barr, this.endPos);
    }

    public void parseData(String str) {
        String[] temp = str.split(":");
        this.startPos = Long.parseLong(temp[0]);
        this.endPos = Long.parseLong(temp[1]);
    }
}
